package com.syg.service;


import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.syg.dao.entity.Address;
import com.syg.dao.mapper.CustInfoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author syg
 * @date 2021年12月2日15:58:56
 */
@Service
public class CustInfoService {

    @Resource
    CustInfoMapper custInfoMapper;

    public void qryCustInfo() {
        PageHelper.startPage(1, 3);
        List<Address> list = custInfoMapper.findAll();
        Page page = (Page) list;
        System.out.println(page.getPageSize());
        System.out.println(page.getPageNum());
        System.out.println(page);
    }
}
